<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<style>
.editPic{
border: 1px solid #cccccc;
    /* padding: 10px; */
    text-align: right;
}
.editpiclink{
       /* position: relative; */
    /* right: 0px; */
    text-align: center;
    /* width: 54px; */
    /* display: inline; */
    font-size: 10px;
    color: red;
    cursor: pointer;
}
.textbox-text-readonly {
color: cornflowerblue;
}
.editno{
width: 1px;
height:1px;
background: cornflowerblue;
}
</style>
<div style="padding:10px 10px 10px 10px">
	<form id="cusSenderForm" class="itemForm" method="post">
	    <table cellpadding="5">
	        <tr>
	            <td>订单编号:</td>
	            <td>
	            	<input class="easyui-textbox" type="text" name=orderIds style="min-width:400px;min-height:100px;"  data-options="multiline:true,readonly:'true'"/>
	            </td>
	        </tr>
	        <tr>
	            <td>分配发货员:</td>
	            <td>
	            	<input class="easyui-combobox" 
							name="senders"
							style="width:200px;height:30px;"
							data-options="
									url:'./user/order/getAllSender',
									method:'get',
									valueField:'id',
									textField:'username',
									panelHeight:'auto',required:true
							">
	            </td>
	        </tr>
	        <tr>
	            <td>备注信息:</td>
	            <td>
	            	<input class="easyui-textbox" type="text" name="sendRemark" style="width:400px;height:100px" data-options="multiline:true,prompt:'请输入发货备注信息'"/>
	            </td>
	        </tr>
	    </table>
	</form>
	<div style="padding:10px">
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width: 100px;height: 30px;line-height: 30px; margin-right: 37px;">提交</a>
	</div>
</div>
<script type="text/javascript">
function submitForm(){
	if(!$('#cusSenderForm').form('validate')){
		$.messager.alert('提示','表单还未填写完成!');
		return ;
	}
		
	$.post("./cus/senderfenpei",$("#cusSenderForm").serialize(), function(data){
		console.log("修改商品成功"+ data)
		if(data.status == 200){
			$.messager.alert('提示','分配成功!','info',function(){
				$("#senderWindow").window('close');
				$("#orderlist").datagrid("reload");
			});
		}
	});
}
</script>	
